import {request} from './request.js'
import { data } from './uni_modules/uview-ui/libs/mixin/mixin.js'

function getbanner(){
	return request({
		url:'banner',
	})
}

function getfeature(){
	return request({
		url:'feature'
	})
}

function getfeatures(){
	return request({
		url:'features'
	})
}


function getmedal(){
	return request({
		url:"medal"
	})
}

function community(){
	return request({
		url:"community"
	})
}

function getcommunitycategory(){
	return request({
		url:"communitycategory"
	})
}


function getvideos(){
	return request({
		url:"videos"
	})
}

function getvideocate(){
	return request({
		url:"videoscategory"
	})
}


function getnewcategory(){
	return request({
		url:'newcate'
	})
}

function getnews(){
	return request({
		url:'newslist'
	})
}

function login(data){
	return request({
		url:'login',
		method:'POST',
		data
	})
}

function register(data){
	return request({
		url:'register',
		method:"POST",
		data
	})
}





export default{
	login,
	register,
	getvideocate,
	getvideos,
	getfeatures,
	getnewcategory,
	getnews,
	getcommunitycategory,
	community,
	getfeature,
	getmedal,
	getbanner
}